<? //ORDER_DETAILS_add.php;
$msg="";
include("ORDER_DETAILS_session.php");
if(isset($_POST["submit"]))
{
	$data_class = new ORDER_DETAILS();$data_class->setOrderDetailID($_POST["OrderDetailID"]);
	$data_class->setOrderID($_POST["OrderID"]);
	$data_class->setProductID($_POST["ProductID"]);
	$data_class->setPrice($_POST["Price"]);
	$data_class->setQuantity($_POST["Quantity"]);
	$data_class->setDiscount($_POST["Discount"]);
	$data_class->setTotal($_POST["Total"]);
	$data_class->setSize($_POST["Size"]);
	$data_class->setColor($_POST["Color"]);
	$data_class->setFullfilled($_POST["Fullfilled"]);
	$data_class->setBillDate($_POST["BillDate"]);
	$data_class->setShipDate($_POST["ShipDate"]);
	$data_class->setShipperID($_POST["ShipperID"]);
	$data_class->setFreight($_POST["Freight"]);
	$data_class->setSalesTax($_POST["SalesTax"]);
	$insert_class = new SessionORDER_DETAILS();
	$insert_class->insert($data_class);
	$msg = "Success Insert Data";
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Insert Data To Table ORDER_DETAILS</title>
<script src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery_validate.js"></script>
  <script>
  $(document).ready(function(){
    $("#form").validate();
  });
  </script>
</head>

<body>
<h2><?=$msg;?></h2><form name="form1" id="form" method="post" action="<?=$_SERVER["PHP_SELF"];?>">
  <table width="657" border="1">
    <tr>
      <td colspan="3">INSERT DATA</td>
    </tr><tr>
      <td width="97">OrderDetailID</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="OrderDetailID" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">OrderID</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="OrderID" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">ProductID</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="ProductID" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">Price</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="Price" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">Quantity</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="Quantity" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">Discount</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="Discount" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">Total</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="Total" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">Size</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="Size" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">Color</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="Color" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">Fullfilled</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="Fullfilled" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">BillDate</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="BillDate" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">ShipDate</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="ShipDate" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">ShipperID</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="ShipperID" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">Freight</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="Freight" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">SalesTax</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="SalesTax" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr> <tr>
      <td></td>
      <td></td>
      <td><input type="submit" name="submit" value="Add" /></td>
    </tr>
   
  </table>
</form>
</body>
</html>